﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Newest.aspx.cs" Inherits="Course_Newest" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
   <title>最新课程</title>
     <link href="../../css/assets/css/bootstrap.min.css" rel="stylesheet" />
    <link href="../../css/admin.css" rel="stylesheet" />
    <script src="../../js/jquery-1.7.2.min.js"></script>
    <script src="../../css/assets/js/bootstrap.min.js"></script>
</head>
<body>
<form id="form1" runat="server">
        <div>
            
             <asp:HiddenField ID="courseType" runat="server" />
             <asp:HiddenField ID="ddlIsCharge" runat="server" />
             <asp:HiddenField ID="ddlIsLive" runat="server" />
             <asp:HiddenField ID="txtCourseName" runat="server" />

            <div>
                <asp:GridView runat="server" ID="gridList" CssClass="table table-striped table-bordered table-hover" AutoGenerateColumns="False" DataKeyNames="CourseID" >
                    <Columns>
                        <asp:BoundField DataField="CourseName" HeaderText="课程名称" />
                        <asp:BoundField DataField="CreateTime" HeaderText="创建时间" />
                        <asp:BoundField DataField="CourseTypeName" HeaderText="课程类型" />
                        <asp:BoundField DataField="Price" HeaderText="课程价格" />
                        <asp:BoundField DataField="JoinCount" HeaderText="参加人数" />
                        
                        <asp:TemplateField HeaderText="是否收费">
                        <ItemTemplate>
                            <%#Eval("IsCharge").ToString() == "1" ? "收费" : "免费"%>
                        </ItemTemplate>
                        </asp:TemplateField>

                    </Columns>
                </asp:GridView>
            </div>
            <div class="pagerLayout">
                <webdiyer:AspNetPager ID="netPager" CssClass="pagerLayout" runat="server" FirstPageText="首页" LastPageText="尾页"
                    NextPageText="下一页" OnPageChanged="netPager_PageChanged" PrevPageText="上一页"
                    PageSize="15">
                </webdiyer:AspNetPager>
            </div>
        </div>
    </form>
        </body>
</html>
